package com.yale.elasticsearch.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author :yale
 * @date : 2024/8/5
 */
@ApiModel(value = "索引")
@Data
public class IndexNameDTO {
    @ApiModelProperty(value = "索引名称")
    private String indexName;
    @ApiModelProperty(value = "索引字段")
    private List<IndexField> indexField;

    @ApiModel(value = "索引字段")
    @Data
    public static class IndexField{
        @ApiModelProperty(value = "字段名称")
        private String fieldName;
        @ApiModelProperty(value = "字段类型")
        private String fieldType;

    }
}
